package com.fyh.crud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fyh.crud.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TestMapper extends BaseMapper<TestMapper> {

    @Select("select * from user ")
    IPage<UserEntity> list(Page<UserEntity> page, String key);

    @Select("select * from user ")
    List<UserEntity> listAll();
}
